import { ApiProperty, PickType } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';
import { CreateUserDto } from '../../user/dto/create-user.dto';

export class CreateAuthDto extends PickType(CreateUserDto, [
  'password',
] as const) {
  @ApiProperty({ description: 'User name' })
  @IsString({ message: 'User name must be a string' })
  @IsNotEmpty({ message: 'User name must not be empty' })
  userName: string;
}
